﻿<UserControl x:Class="eventr.View.ImageDetails"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Util="clr-namespace:eventr.View.Util"
    xmlns:View="clr-namespace:eventr.View"
    Width="Auto" Height="Auto" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignWidth="1345.5" xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows">
    
    
    <UserControl.Resources>
        <Util:StringToUri x:Key="StringToUri"/>
        
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="{x:Null}" Height="Auto" VerticalAlignment="Bottom">      


        <vsm:VisualStateManager.VisualStateGroups>
            <vsm:VisualStateGroup x:Name="DisplayedStates">
                <vsm:VisualStateGroup.Transitions>
                    <vsm:VisualTransition GeneratedDuration="00:00:00.5000000"/>
                </vsm:VisualStateGroup.Transitions>
                <vsm:VisualState x:Name="Displayed">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)">
                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </vsm:VisualState>
                <vsm:VisualState x:Name="Hidden">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)">
                            <SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                        <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Visibility)">
                            <DiscreteObjectKeyFrame KeyTime="00:00:00">
                                <DiscreteObjectKeyFrame.Value>
                                    <Visibility>Collapsed</Visibility>
                                </DiscreteObjectKeyFrame.Value>
                            </DiscreteObjectKeyFrame>
                        </ObjectAnimationUsingKeyFrames>
                    </Storyboard>
                </vsm:VisualState>
            </vsm:VisualStateGroup>
        </vsm:VisualStateManager.VisualStateGroups>
        <Grid Height="76" VerticalAlignment="Bottom" Background="#CC000000">
		 	<Grid.ColumnDefinitions>
	            <ColumnDefinition Width="*"/>
	            <ColumnDefinition Width="700"/>
	            <ColumnDefinition Width="*"/>
			</Grid.ColumnDefinitions>
    		<Border Background="{x:Null}" CornerRadius="0,0,0,0" BorderThickness="2,2,2,2" BorderBrush="{x:Null}" Grid.Column="1">
    			<Grid Margin="5,5,5,5">
    				<Grid.ColumnDefinitions>
    					<ColumnDefinition Width="342"/>
    					<ColumnDefinition Width="251.5"/>
    				</Grid.ColumnDefinitions>
    				<StackPanel Width="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
    					<TextBlock FontFamily="Georgia" FontSize="18" Foreground="#FFFFFFFF" Text="{Binding Path=CurrentImageContext.Title}" TextWrapping="Wrap"/>
    					<TextBlock Margin="0,5,0,0" FontFamily="Arial" FontSize="12" Foreground="#FFFFFFFF" Text="{Binding Path=CurrentImageContext.Blurb}" TextWrapping="Wrap"/>
    				</StackPanel>
    				<Grid Height="18" Margin="0,0,-0.5,0" VerticalAlignment="Top" Grid.Column="1">
    					<HyperlinkButton Content="{Binding Path=CurrentImageContext.Url}" NavigateUri="{Binding Converter={StaticResource StringToUri}, Path=CurrentImageContext.Url}" Height="Auto" Margin="0,0,0,0" Width="Auto" HorizontalAlignment="Stretch"/>
    				</Grid>
    			</Grid>
    		</Border>
    		<Button Click="Button_Click"  Grid.Column="1" HorizontalAlignment="Right" Content="Link this to a friend" Style="{StaticResource NiceButton}" BorderBrush="{x:Null}" Margin="0,0,230,8" Width="115" BorderThickness="1,1,1,1" Foreground="#FFFFFFFF" FontSize="9" VerticalAlignment="Bottom" Height="28">
    			<Button.Background>
    				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    					<GradientStop Color="#FFA0A0A0"/>
    					<GradientStop Color="#FF878787" Offset="1"/>
    					<GradientStop Color="#FF5C5C5C" Offset="0.74599999189376831"/>
    				</LinearGradientBrush>
    			</Button.Background>
    		</Button>
    	</Grid>
        <View:FlyThroughUrlPopup x:Name="FlyThroughUrlPopup" HorizontalAlignment="Center" VerticalAlignment="Bottom" d:LayoutOverrides="Width" Height="352"/>
    </Grid>
    
    
</UserControl>
